@import '~@/assets/style/unit/color.scss';

// 工具类名统一前缀
$prefix: 'yxb';

// 禁止用户选中 鼠标变为手形
%unable-select {
  user-select: none;
  cursor: pointer;
}

// 填满父元素
// 组要父元素 position: relative | absolute;
%full {
  position: absolute;
  top: 0; 
  right: 0;
  bottom: 0;
  left: 0;
}

// flex 垂直水平居中
%flex-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
%flex-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

// 将元素模拟成卡片外观
%card {
  border: 1px solid #dddee1;
  //border-color: #e9eaec;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
}
.yxb-form {
  padding: 10px 10px 0;
}
.yxb-content-plain {
  margin: 20px;
  padding: 20px;
  background-color: #fff;
}
.yxb-detail-wrap {
  padding: 20px;
  background-color: #fff;
}
div::-webkit-scrollbar {
  //改变div的滚动条宽度
  width: 6px;
}

div::-webkit-scrollbar-track {
  //改变div的滚动条轨道颜色
  background: rgb(255, 255, 255);
  border-radius: 3px;
}

div::-webkit-scrollbar-thumb {
  //改变div的滚动条滑轨相关的样式
  background: rgb(180, 180, 180);
  border-radius: 5px;
}
.el-menu-style.el-menu--horizontal li {
  border: 1px solid #dcdfe6 !important;
  border-left: 0 !important;
  min-width: 80px;
  text-align: center;
  height: 28px;
  line-height: 26px;
  box-sizing: border-box;
  font-size: 12px;
  color: #303133;
  padding: 0 10px;
  list-style: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
  box-sizing: border-box;
  white-space: nowrap;
  float: left;
  margin: 0;
}
.el-menu-style.el-menu--horizontal .el-submenu .el-submenu__icon-arrow {
  position: static;
  vertical-align: middle;
  margin-left: 8px;
  margin-top: -3px;
}
.el-menu-style.el-menu--horizontal .el-menu-item.is-active,
.el-menu-style.el-menu--horizontal .el-menu-item.is-active:visited,
.el-menu-style.el-menu--horizontal .el-menu-item.is-active:focus,
.el-menu-style.el-menu--horizontal .el-menu-item.is-active:active {
  background: $color-primary;
  color: #ffffff;
}
.el-menu-style.el-menu--horizontal
  .el-menu-item.is-active:not(.is-disabled):hover {
  opacity: 0.9;
  background: $color-primary;
  color: #ffffff;
}
.el-menu-style.el-menu--horizontal .menu-item:first-child li {
  border-left: 1px solid #dcdfe6 !important;
  border-radius: 4px 0 0 4px;
}
.el-menu-style.el-menu--horizontal .menu-item:last-child li {
  border-radius: 0 4px 4px 0;
}
.el-menu-style.el-menu--horizontal .el-submenu.is-active {
  background: $color-primary;
  color: #ffffff;
  border-color: $color-primary !important;
}
.el-menu-style.el-menu--horizontal .el-submenu .el-submenu__title {
  height: 26px;
  line-height: 26px;
  padding: 0 10px;
  border-bottom: 0 !important;
}
.el-menu-style.el-menu--horizontal .el-submenu.is-active .el-submenu__title {
  color: #ffffff;
  background: $color-primary;
}
.el-menu-style.el-menu--horizontal .el-submenu.is-active .el-submenu__title i {
  color: #ffffff;
}
.el-menu-style.el-menu--horizontal .el-menu-item:not(.is-disabled):hover,
.el-menu-style.el-menu--horizontal .el-submenu:not(.is-disabled):hover{
  background: #edf5f9;
}
.el-menu-style.el-menu--horizontal .el-menu-item.is-active:not(.is-disabled):hover,
.el-menu-style.el-menu--horizontal .el-submenu.is-active:not(.is-disabled):hover{
  background: $color-primary;
}
//
.timeline .el-timeline-item__content{
  line-height: normal;
}